#include "PDTCodeGraph.h"
#include "PDTNode.h"

PDTCodeGraph::PDTCodeGraph(){
	currentId=0;
}

void PDTCodeGraph::addNode(PDTNode * node){
	nodes.push_back(node);
}

void PDTCodeGraph::addVar(PDTVar * var){
	variables.push_back(var);
}

void PDTCodeGraph::addConst(PDTConst * cons){
	constants.push_back(cons);
}

void PDTCodeGraph::addProp(PDTProp * prop){
	properties.push_back(prop);
}

void PDTCodeGraph::updateCurrentId(){
    currentId++;
}

void PDTCodeGraph::traverse(PDTNode * node){
	//node->traverse();
}
